package com.itheima02;

/**
 * @author Xiao
 * @date 2021/7/10
 */
public class Cat extends Animal {
    @Override
    public void eat() {
        System.out.println(getAge() + "岁" + getName() + "爱吃鱼");
    }

    public void playgame () {
        System.out.println(getAge() + "岁" + getName() + "在玩捉迷藏");
    }

    public Cat() {
    }

    public Cat(String name, int age) {
        super(name, age);
    }
}
